async function zhuce(name,pass,markemail){  //连接注册数据库
    var data = await Ajax('POST','http://39.105.192.164:9090/apitest/adduser',`username=${name}&password=${pass}&remark=${markemail}`);
    if(JSON.parse(data).code==1){
        $.cookie(`${name}`,`${pass}`);
        tiaozhuanspace();

    }else{
        alert('未知错误')
        console.log(data)
    }
}
function tiaozhuanspace(){
    window.location.href='http://localhost/huawei/index.html'
}
var zcyonghu = $('#zcyonghu');
var zcmima = $('#zcmima');
var cfmima = $('#cfmima');
var youxiang = $('#youxiang');
zcyonghu.html('');
zcmima.html('');
youxiang.html('');
function tijiao(){
    if(zcmima.val()==cfmima.val()){
        zhuce(zcyonghu.val(),zcmima.val(),youxiang.val())
    }else{
        alert('请输入正确的重复密码')
    }
    console.log(zcyonghu.val(),zcmima.val(),youxiang.val())
    
}